package com.zc.custom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zc.custom.mapper.ChargeCustomOrderInfoDetailsMapper;
import com.zc.custom.domain.ChargeCustomOrderInfoDetails;
import com.zc.custom.service.IChargeCustomOrderInfoDetailsService;

/**
 * 订单计费详情Service业务层处理
 *
 * @author glb
 * @date 2023-11-15
 */
@Service
public class ChargeCustomOrderInfoDetailsServiceImpl implements IChargeCustomOrderInfoDetailsService
{
    @Autowired
    private ChargeCustomOrderInfoDetailsMapper chargeCustomOrderInfoDetailsMapper;

    /**
     * 查询订单计费详情
     *
     * @param orderInfoDetailsId 订单计费详情主键
     * @return 订单计费详情
     */
    @Override
    public ChargeCustomOrderInfoDetails selectChargeCustomOrderInfoDetailsByOrderInfoDetailsId(Long orderInfoDetailsId)
    {
        return chargeCustomOrderInfoDetailsMapper.selectChargeCustomOrderInfoDetailsByOrderInfoDetailsId(orderInfoDetailsId);
    }

    /**
     * 查询订单计费详情列表
     *
     * @param chargeCustomOrderInfoDetails 订单计费详情
     * @return 订单计费详情
     */
    @Override
    public List<ChargeCustomOrderInfoDetails> selectChargeCustomOrderInfoDetailsList(ChargeCustomOrderInfoDetails chargeCustomOrderInfoDetails)
    {
        return chargeCustomOrderInfoDetailsMapper.selectChargeCustomOrderInfoDetailsList(chargeCustomOrderInfoDetails);
    }

    /**
     * 新增订单计费详情
     *
     * @param chargeCustomOrderInfoDetails 订单计费详情
     * @return 结果
     */
    @Override
    public int insertChargeCustomOrderInfoDetails(ChargeCustomOrderInfoDetails chargeCustomOrderInfoDetails)
    {
        return chargeCustomOrderInfoDetailsMapper.insertChargeCustomOrderInfoDetails(chargeCustomOrderInfoDetails);
    }

    /**
     * 修改订单计费详情
     *
     * @param chargeCustomOrderInfoDetails 订单计费详情
     * @return 结果
     */
    @Override
    public int updateChargeCustomOrderInfoDetails(ChargeCustomOrderInfoDetails chargeCustomOrderInfoDetails)
    {
        return chargeCustomOrderInfoDetailsMapper.updateChargeCustomOrderInfoDetails(chargeCustomOrderInfoDetails);
    }

    /**
     * 批量删除订单计费详情
     *
     * @param orderInfoDetailsIds 需要删除的订单计费详情主键
     * @return 结果
     */
    @Override
    public int deleteChargeCustomOrderInfoDetailsByOrderInfoDetailsIds(Long[] orderInfoDetailsIds)
    {
        return chargeCustomOrderInfoDetailsMapper.deleteChargeCustomOrderInfoDetailsByOrderInfoDetailsIds(orderInfoDetailsIds);
    }

    /**
     * 删除订单计费详情信息
     *
     * @param orderInfoDetailsId 订单计费详情主键
     * @return 结果
     */
    @Override
    public int deleteChargeCustomOrderInfoDetailsByOrderInfoDetailsId(Long orderInfoDetailsId)
    {
        return chargeCustomOrderInfoDetailsMapper.deleteChargeCustomOrderInfoDetailsByOrderInfoDetailsId(orderInfoDetailsId);
    }
}
